<?php echo $html->docType(); ?>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

    <?php echo $html->charSet(); ?>


    <title><?php echo $title_for_layout; ?></title>

    <?php echo $html->css('screen'); ?>


    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    <script type="text/javascript">
    $("html").addClass("has-js");
    $(document).ready(function() {
        $("table tbody tr").each(function() {
            var links = $("a", this);
            if (links.length == 1) {
                $(this)
                .hover(
                    function() {
                        $(this).addClass("hover")
                    },
                    function() {
                        $(this).removeClass("hover")
                    }
                )
                .click(function() {
                    document.location.href = $("a", this)[0].href;
                })
                .attr("title", links[0].title)
            }
        });
    });
    </script>

</head>
<body>

<div id="header">

    <h2><?php
    echo Configure::read('Agency.admin_title');
    echo ' ';
    echo $html->link(__('Visit site', true), '/');
    ?></h2>

</div>

<?php
$session->flash();
?>

<hr />

<div id="middle">

    <div id="main">

        <?php echo $content_for_layout; ?>


    </div>

    <?php echo $this->element('menu'); ?>


</div>

<hr />

<div id="footer">

</div>

</body>
</html>